//构造函数 constructor
function Person(name,age) {
    this.name = name;
    this.age = age ;
}
//
Person.prototype.sayHi = function() {
    console.log('hello');
}
Person.prototype.playBasketBall = function() {
    console.log('打篮球');
}
// new 来调用
const wf = new Person('王飞',18);
console.log(wf.name);
wf.sayHi()